#!/bin/bash
# @hequan
# 停用淘宝渠道队列


workdir="/trunk/src/channeladmin/cron_scripts/taobao_queue"

cd ${workdir}

php bin/monitor.php stop

sleep 1

num=`ps -ef|grep "taobao_queue"|grep -v grep|wc -l`
if [ ${num} -ne 0 ] ; then
	pids=`ps -ef|grep taobao_queue|grep -v grep|awk '{printf("%s ",$2);}'`
	kill -9 ${pids}
fi
